package com.cug.smartranch.animal.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cug.smartranch.animal.admin.dao.entity.AnimalLocation;
import com.cug.smartranch.animal.admin.dto.req.AnimalLocationSaveReqDTO;
import com.cug.smartranch.animal.admin.dto.resp.AnimalLocationQueryRespDTO;

import java.util.List;

/**
 * 动物坐标业务逻辑层
 */
public interface AnimalLocationService extends IService<AnimalLocation> {
    /**
     * 创建坐标记录
     * @param requestParam
     */
    void createAnimalLocation(AnimalLocationSaveReqDTO requestParam);

    /**
     * 查询该动物近100条坐标记录
     * @param animalId
     * @return 该动物近100条坐标记录
     */
    List<AnimalLocationQueryRespDTO> findAnimalHealth(Long animalId);

    void createMockAnimalLocation(Long animalId);
}
